<?php

$view = $app->view();
$view->parserOptions = array(
    'debug' => true,
    'cache' => realpath('../data/templates'),
    'charset'=>'utf-8',
    'auto_reload'=>true,
    'strict_variables'=>false,
    'autoescape'=>true
);
$view->parserExtensions = array(
    new \Slim\Views\TwigExtension()
);
if(MODE=='home'||MODE=='nt'){
	$view->parserExtensions[]=new Twig_Extension_Debug();
}